<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理员列表</title>
	<link href="${basePath}/admin/css/base.css" type="text/css" rel="stylesheet">
</head>
<body>
	
<div id="container">
     <h2>管理员列表</h2><br/>
     <a href="${basePath}/admin/admin/view?actor_id=${actor_id!}" class="button_50">添加新纪录</a>
    <br/><br/>
    <div id="content">
      <table class="dataTable">
          <tr>
	          <th>ID</th>
	          <th>昵称</th>
	          <th>登陆名</th>
	          <th>座机</th>
	          <th>手机</th>
	          <th>邮箱</th>
	          <th>最近登陆时间</th>
	          <th>最近登陆IP</th>
	          <th>是否禁用</th>
          </tr>
          <#list admins.list as a>
	          <tr>
		          <td>${a.id!}</td>
		          <td>${a.nickname!}</td>
		          <td>${a.username!}</td>
		          <td>${a.phone!}</td>
		          <td>${a.telephone!}</td>
		          <td>${a.email!}</td>
		          <td>${a.login_time!}</td>
		          <td>${a.login_ip!}</td>
		          <td>
		          	<a href="${basePath}/admin/admin/view?id=${a.id!}&actor_id=${actor_id!}">修改</a>
		          	<#if a.disable == -1>
		          		<a href="${basePath}/admin/admin/disable?id=${a.id!}" onclick="return confirm('你确认要禁用这条记录?')">禁用</a>
		          	<#else>
		          		<a href="${basePath}/admin/admin/renew?id=${a.id!}" onclick="return confirm('你确认要解禁这条记录?')">解禁</a>
		          	</#if>
		          	<a href="${basePath}/admin/admin/delete?id=${a.id!}" onclick="return confirm('你确认要删除这条记录?')">删除</a>
		          </td>
	          </tr>
          	</#list>
   	</table>
   	<#include "./common/_paginate_admins.html" />
	<@paginate currentPage = admins.pageNumber totalPage = admins.totalPage actionUrl = "/admin/admin/index?id=${actor_id!}" />
  </div>
</div>
</body>
</html>